package com.hl.sfzy.controller;

import com.hl.sfzy.entity.SearchTrendsTeachers;
import com.hl.sfzy.service.SearchTrendsTeachersService;
import com.hl.sfzy.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/searchTrendsTeachers")
public class searchTrendsTeachersController {
    @Autowired
    private SearchTrendsTeachersService searchTrendsTeachersService;
    @GetMapping("/trends")
    public R searchUserMark(String teacherName, String address, String sex, String levelName, String goodAreas) {
        System.out.println(teacherName);
        List<SearchTrendsTeachers> teacherList=searchTrendsTeachersService.searchTrendsTeachersService(teacherName,address,sex,levelName,goodAreas);
        return R.success(teacherList);
    }
}
